package com.anping.service.impl;

import com.anping.dao.OrderMapper;
import com.anping.model.Order;
import com.anping.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by admin on 2016/9/18.
 */
@Service("orderService")
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    public List<Order> selectOrderList(String userName, String orderAddress, Long userTel) throws Exception {

        List<Order> orderList = orderMapper.selectOrderList(userName, orderAddress, userTel);
        return orderList;
    }

    public boolean deleteOrder(int orderId) {
        return false;
    }
}
